import request from '@/utils/request'

// 查询出差申请列表
export function listTravel(query) {
  return request({
    url: '/Travel/Travel/list',
    method: 'get',
    params: query
  })
}

// 查询出差申请详细
export function getTravel(travelId) {
  return request({
    url: '/Travel/Travel/' + travelId,
    method: 'get'
  })
}

// 新增出差申请
export function addTravel(data) {
  return request({
    url: '/Travel/Travel',
    method: 'post',
    data: data
  })
}

// 修改出差申请
export function updateTravel(data) {
  return request({
    url: '/Travel/Travel',
    method: 'put',
    data: data
  })
}

// 删除出差申请
export function delTravel(travelId) {
  return request({
    url: '/Travel/Travel/' + travelId,
    method: 'delete'
  })
}


export function getcccheckedlist(query) {
  return request({
    url: '/system/wecom/getcccheckedlist',
    method: 'get',
  })
}
